
#include "Interactiv_BIM/Interactiv_BIMPublic.h"
#include "Interactiv_BIM/CommandFactoryPublic.h"

#define DockingControlBar_StartID 200

IMPLEMENT_Singleton(CCommandCreator);
CCommandCreator::CCommandCreator()
{

}

ChaiDanCommand * CCommandCreator::_Creat(DesignerDlgTypePublic type, void* pData)
{
	ChaiDanCommand  *pDockingControlBar =
		FactorManager<DesignerDlgTypePublic, ChaiDanCommand>::_Creat(type, pData);



  return pDockingControlBar;
}


ChaiDanCommand * CCommandCreator::Create(DesignerDlgTypePublic type, void* pData, bool blnChange)
{
	ChaiDanCommand *pDockingControlBar =
		FactorManager<DesignerDlgTypePublic, ChaiDanCommand>::Create(type, pData, blnChange);


  if (pDockingControlBar)
  {
    if(!PostCreate(type, pDockingControlBar)) 
    {
      delete pDockingControlBar;
      pDockingControlBar = NULL;
    }
  }
  
	return pDockingControlBar;
}



BOOL CCommandCreator::PostCreate(DesignerDlgTypePublic type, ChaiDanCommand *pDockingControlBar)
{


  return true;
}
